<h1>New event</h1>

<%= error_messages_for :event %>

<% form_for(:event, :url => events_path) do |f| %>
  <p>
    <b>Organization</b><br />
    <%= f.text_field :organization_id %>
  </p>

  <p>
    <b>Title</b><br />
    <%= f.text_field :title %>
  </p>

  <p>
    <b>Location</b><br />
    <%= f.text_field :location %>
  </p>

  <p>
    <b>Address</b><br />
    <%= f.text_field :address %>
  </p>

  <p>
    <b>Cost</b><br />
    <%= f.text_field :cost %>
  </p>

  <p>
    <b>Rsvp instructions</b><br />
    <%= f.text_field :rsvp_instructions %>
  </p>

  <p>
    <b>Rsvp url</b><br />
    <%= f.text_field :rsvp_url %>
  </p>

  <p>
    <b>Start time</b><br />
    <%= f.datetime_select :start_time %>
  </p>

  <p>
    <b>End time</b><br />
    <%= f.datetime_select :end_time %>
  </p>

  <p>
    <b>Description</b><br />
    <%= f.text_area :description %>
  </p>

  <p>
    <b>Contact</b><br />
    <%= f.text_field :contact %>
  </p>

  <p>
    <%= submit_tag "Create" %>
  </p>
<% end %>

<%= link_to 'Back', events_path %>